import request from '@/utils/request.js'

// 获取轮播图
export let fun_banners = () => {
    return request({
        url: "/banners",
        method: "get"
    })

}
// 列表页数据
export let fun_list = () => {
    return request({
        url: "/list",
        method: "get"
    })

}
// 注册
export let fun_reg = (phone, pass) => {
    return request({
        url: "/reg",
        method: "post",
        data: {
            phone, pass
        }
    })

}
// 登录
export let fun_login = (phone, pass) => {
    return request({
        url: "/login",
        method: "get",
        data: {
            phone, pass
        }
    })

}
export let fun_detail = (id) => {
    return request({
        url: "/detail",
        method: "get",
        params: {
            id
        }
    })

}